home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lantools
/
bkup
/
s_blogs.bat
< prev
next >
Wrap
DOS Batch File
|
1990-07-22
|
962b
|
40 lines
:... S_BLOGS.BAT, Craig. MacPherson
: Variables passed
: %1 Userid
: %2 DELETE or PRINT or READ
: %3 SUM or HIS
:... Make sure no jobs are running
if exist n:\backups\backup.jbs\%1.bat goto JOB_ALREADY_IN_PROGRESS
if exist n:\backups\restore.jbs\%1.bat goto JOB_ALREADY_IN_PROGRESS
goto CONTINUE
:JOB_ALREADY_IN_PROGRESS
smessage "A backup job is already in" "progress for this workstation"
goto end
:CONTINUE
goto %2
goto END
:READ
if not exist z:\backups\activity.lgs\%1.%3 goto NOFILE
readme z:\backups\activity.lgs\%1.%3
goto END
:DELETE
if exist z:\backups\activity.lgs\%1.%3 del z:\backups\activity.lgs\%1.%3
goto END
:PRINT
if not exist z:\backups\activity.lgs\%1.%3 goto NOFILE
copy z:\backups\activity.lgs\%1.%3 lpt1: >>nul:
echo >lpt1:
goto end
:NOFILE
smessage "No file exists"
goto end
:END